/* cross.h */

#ifndef DODO_CROSS_H
#define DODO_CROSS_H

#include <dodo_plot/kernel/plotfwd.h>
#include <dodo_plot/kernel/point.h>
#include <dodo_plot/kernel/position.h>

namespace dodo_plot
{
/// 测试用的小组件. 将在其区域内绘制X形的交叉线. 
class Cross
{
public:
	void draw(const Plotter& plotter) const;
	
public:
	Cross(double w, double h, double line_width = 5.0) :
		w_(w), h_(h), line_w_(line_width) { };

	double height() const { return h_; }
	double width() const { return w_; }
	Position local_pos() const { return Position(0.0, w_, 0.0, h_); }
private:	
	double w_, h_;
	double line_w_;

};
}

#endif //DODO_CROSS_H

